public class Final {
    public static void main(String[] args) {
        final double PI = 3.14;
        double r = 5.0;
        double area = PI * r * r;
        System.out.println("area is: " + area);

        // 错误: 无法为最终变量PI分配值
        // PI = 300;
    }
}
